package uk.co.agileworks.bidpirate.service;

import org.apache.commons.lang.StringUtils;

import com.gargoylesoftware.htmlunit.html.HtmlPage;

public class EbayFacadeImpl implements EbayFacade {

	@Override
	public final String getDescription(final HtmlPage itemPage) {
		final String titleText = itemPage.getTitleText();
		return StringUtils.substringBefore(titleText, " - eBay Mobile");
	}

}
